﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel;

namespace Pangeo.Admin.Models.HrmDb.Dto
{
    /// <summary>
    /// 请假
    /// </summary>
    public class TmLeaveOfAbsences
    {
        [Description("请假ID")]
        [BsonId]
        public ObjectId _id { get; set; }

        [Description("工号")]
        public string people_no { get; set; }

        [Description("姓名")]
        public string people_name { get; set; }

        [Format("yyyy-MM-dd HH:mm")]
        [Description("请假开始时间")]
        public DateTime create_start_date { get; set; }

        [Format("yyyy-MM-dd HH:mm")]
        [Description("请假结束时间")]
        public DateTime create_end_date { get; set; }

        public string[] date_arr { get; set; }

        public string[] start_time_arr { get; set; }

        public string[] end_time_arr { get; set; }

        public double[] leave_hours_arr { get; set; }

        [Description("请假类型")]
        public string absence_type_name { get; set; }

        [Description("请假天数")]
        public double leave_days { get; set; }

        [Description("请假时长")]
        public double hours { get; set; }

        [Description("请假原因")]
        public string leave_reason { get; set; }
    }
}
